package com.ai.web.service;

import java.util.List;
import java.util.Map;

import com.ai.web.vo.RepairV;
import com.ai.web.vo.ResultModel;
import com.tiny.persistence.domain.Repair;
/**
 * 报修服务层
* @ClassName: RepairService 
* @Description: TODO 
* @author:  
* @date: 2014年3月23日
*
 */
public interface RepairService extends BaseService {
	
	public RepairV getRepair(int repairId) throws Exception;
	
	public ResultModel saveRepair(RepairV repairV) throws Exception;
	
	public ResultModel deleteRepairs(List<Integer> repairIds) throws Exception;
	
	//生成工单
    public ResultModel generateWorkOrders(RepairV repairV) throws Exception;
    //确认工单
    public ResultModel confirmWorkOrders(RepairV repairV) throws Exception;
    //反馈工单
    public ResultModel feedbackWorkOrders(RepairV repairV) throws Exception;
    //设备维护
    public ResultModel equipmentMaintenance(RepairV repairV) throws Exception;

	public List<Repair> getListByOpenId(String openId);

	public List<Map<String, Object>> getCountByStatus();
	
	public List<Map<String, Object>> getCountByStatus(String repairDate);
	
	public List<RepairV> getListByStatus(byte status) throws Exception;
	
}
